/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package views;

import java.awt.Graphics;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JComponent;
import rpg.GameCharacter;

/**
 *
 * @author Emmanouil Samatas
 */
public class CharacterGraphics extends JButton {

    GameCharacter gc;

    public CharacterGraphics(GameCharacter gc) {
        this.gc = gc;


        ImageIcon ii = gc.getBigImageIcon();
        super.setBorder(null);
        super.setOpaque(false);
        this.setContentAreaFilled(false);
        this.setBorderPainted(false);
        this.setIcon(ii);
        

    }

    public GameCharacter getGameCharacter() {
        return this.gc;
    }
    
    public void assignGraphics(GameCharacter gc){
        gc.setCharacterGraphics(this);
    }
}
